<template>
	<view class="body">
	<!-- 	<view class="os">
			
			 <u-swiper
			
			            :list="imglist"
			            @change="change"
			            @click="click"
						 height='289'
			    ></u-swiper>
		</view>


		<view class="top">
			<span>保障</span>
			<p>
				<image src="./image.png" mode=""></image> 不满意重服务
			</p>
			<p>
				<image src="./image.png" mode=""></image> 无额外收费
			</p>
		</view> -->

		<view class="ssio">
			<view style="width: 200rpx;">
				<u-tabs :list="list1" @click="click" lineColor="#12AB51"></u-tabs>
			</view>
			<view style="margin-top: 20rpx;padding: 0rpx 30rpx;">
				<view @click="videoClick(detail)" v-if="!(detail.video
																	.length==0)" class="video-box">
					<view class="video-box1">
						<image :src="detail.video_image" mode=""></image>
					</view>					
					<view style="margin-top: -350rpx;" class="">
						<image src="/static/video.png"
							style="margin-left: 300rpx; width: 100rpx; height: 100rpx;" mode="">
						</image>			
					</view>			
									
				</view>
			
				<rich-text v-html="content"> </rich-text>
			</view>
		</view>
		
		<!-- <view class="flex">
			<p>立即下单</p>
		</view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				image: '',
				list1: [{
					name: '项目介绍',
				}],
				imglist:[],
				content:'',
				detail:{
					name:''
				}
			}
		},
		onLoad(options) {
			console.log(options)
			let id = options.id
			this.$http.post('api/service/detail',{service_id:id}).then(res=>{
				this.imglist = res.banner_images
				console.log(res.banner_images)
				this.content = res.content
				this.detail=res
			
			})
			
		},
		methods: {
			videoClick(item){
				uni.navigateTo({
					url:'/pages/my/vido?video='+item.video
				})
			},
			click(){
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	
	.video-box{
		width:  700rpx;
		height: 700rpx;
		margin-right: 14rpx;
		margin-top: 14rpx;
		// border-radius: 8rpx;
		background-color: #f4f4f4;
	}
	.video-box1{
		width:  100%;
		height: 100%;
		// border-radius: 8rpx;
		video{
			// border-radius: 8rpx;
			width:  100%;
			height: 100%;
		}
	image{
			// border-radius: 8rpx;
		width:  100%;
		height: 100%;
	}
	}
	page{
		padding-bottom: 40rpx;
	}
	.videoView{
		width: 650rpx;
		height: 650rpx;
		video{
			border-radius: 10rpx;
			width: 100%;
			height: 100%;
		}
	}
	.body {
		background-color: rgb(245, 245, 245);
	}

	.os {
		width: 100%;

		image {
			width: 100%;
		}
	}

	.ss {
		height: 300rpx;
		background-color: white;

		.s {
			display: flex;
			width: 90%;
			margin: 0 auto;
			height: 50rpx;
			line-height: 50rpx;
			background-color: rgb(245, 245, 245);
			border-radius: 20rpx;

			span {
				color: #12AB51;
				font-size: 28rpx;
				margin-left: 20rpx;
			}

			label {
				font-size: 28rpx;
				margin-left: 40rpx;
			}
		}
	}

	.abs {
		margin: 20rpx 40rpx;
		width: 240rpx;
		height: 146rpx;
		padding: 20rpx;
		border: 1px solid #12AB51;
		background-color: #EFFFF6;
		border-radius: 20rpx;
		p {
			font-size: 30rpx;
		}
		label {
			font-size: 32rpx;
			font-weight: 900;
			color: red;
		}

		span {
			font-size: 22rpx;
			padding-left: 6rpx;
			color: #999;
		}
	}

	.top {
		margin: 30rpx 0;
		height: 90rpx;
		line-height: 90rpx;
		background-color: white;
		display: flex;

		span {
			font-size: 26rpx;
			margin-left: 30rpx;
			margin-right: 50rpx;
		}

		p {
			font-size: 26rpx;
			margin-left: 50rpx;
			display: flex;
			align-items: center;
		}

		image {
			width: 26rpx;
			height: 26rpx;
			margin-right: 6rpx;
		}
	}

	.ssio {
		// height: 700rpx;
		background-color: white;
		padding-bottom: 40rpx;
	}
	.flex{
		position: fixed;
		bottom: 0%;
		right: 0;
		width: 100%;
		height: 150rpx;
		text-align: center;
		background-color: white;
		box-shadow: 0rpx 0rpx 13rpx 0rpx rgba(24,24,23,0.28);
		p{
			width: 600rpx;
			height: 60rpx;
			line-height: 60rpx;
			margin: 30rpx auto;
			background: #12AB51;
			border-radius: 30rpx;
			color: white;
			font-size: 26rpx;
		}
	}
</style>